﻿<?php
	require_once("../connectMysql/connetMysql.class.php");
	//$page = intval($_GET['page']); //获取请求的页数 
	//$item=6;
	//if(!empty($page))
	//{
	
	//$start = $page*$item;
	
	$db=new connetMysql;
	$con=$db->getConnect();
	$chk_sql="SELECT UserId,UserName,userTypea,userSexa,UserDescri FROM user order by UserId desc ";		
	$result=$con->query($chk_sql);

	while ($row = mysqli_fetch_assoc($result))
	{
		$arr[] = array( 
		'UserId'=>$row['UserId'], 
		'UserName'=>$row['UserName'], 
		'UserType'=>$row['userTypea'],
		'userSexa'=>$row['userSexa'],
		'UserDescri'=>$row['UserDescri']
 		 ); 
	}
	echo json_encode($arr); 
	$con->close(); 
	//}
?>